package com.humbleyuan.blogfront.mapper;

import com.humbleyuan.blogfront.entity.comment.CommentReplay;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;


import java.util.List;

/**
 * @Author: HumbleYuan
 * @description:
 * @Date: 2019/8/12
 * @Time: 10:04
 * @Version: 1.0
 */
@Mapper
@Repository
public interface ReplayCommentMapper {

    /**
     * 获取所有回复评论条数
     *
     * @return int
     */
    int getAllReplaysNum();

    /**
     * 获取所有回复
     *
     * @return List<CommentReplay>
     */
    List<CommentReplay> getReplyList();

    /**
     * 提交回复类型评论
     *
     * @param cr
     * @return
     */
    int commitReplyComment(CommentReplay cr);
}
